package com.example.bbs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.bbs.entity.Comment;
import com.example.bbs.util.CommentResolve;

import java.util.List;

/**
 * @author jiajiazi
 * @version 1.0
 * @date 2021/7/5 3:58
 */
public interface CommentService extends IService<Comment> {
    List<CommentResolve> getCommentsOfLevel1(int artid);

    List<CommentResolve> getCommentsOfLevel2_3(int artid, int comment1id);

    String addComment1(int artid, int commentatorid, String content);

    String addComment2(int artid, int commentatorid, int comment1id, String content);

    String addComment3(int artid, int commentatorid, int comment1id, int comment2id, String content);

    String updateSupport(int commentid,int value);
}
